import { inject } from 'vue';
import { userAgentInjectionKey } from '../utils/keys';
import type { UserAgent } from '@/common/utils/user-agent';

export function useUserAgent() {
  return inject(userAgentInjectionKey) as UserAgent;
}
